package org.leetcodeplus.leetcodeplus.api.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.leetcodeplus.leetcodeplus.api.entity.LcTest;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author Baomidou
 * @since 2025-07-31
 */
public interface LcTestMapper extends BaseMapper<LcTest> {


    List<LcTest> findByTestCodesIn(@Param("codes") List<String> codes);

    @Select("select * from lc_test where test_code = #{code}")
    LcTest getLcByCode(String code);

    @Select("select name from dictionary where code = #{testCode}")
    String getTestCode(String testCode);

}
